import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store(
  {
    state: {
      count: 100,
      title: '标题'
    },
    // 修改state的方法都要写在mutations中
    mutations: {
      Changge (state) {
        state.count++
      }
    }

  }
)
export default store
